package com.mrdeer.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mrdeer.user.api.dto.tenant.TenantRolePrivilegeDTO;
import com.mrdeer.user.api.entity.AuthorizationPrivilege;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 18:05
 */
@Repository
public interface AuthorizationPrivilegeMapper extends BaseMapper<AuthorizationPrivilege> {

    List<AuthorizationPrivilege> selectPrivilegeByRole(@Param("roleIds") List<Long> roleIds);

    List<TenantRolePrivilegeDTO> selectPrivilegeRoleInTenant(@Param("roleIds") List<Long> roleIds);
}
